class AddFlagToStandardmaintenance < ActiveRecord::Migration
  def self.up
    add_column :standard_maintenances,:flag,:integer,:default => 0         #标志位，0-只有静态或者动态作业，1-包括静动态作业
    add_column :standard_maintenances,:dynamic_begin_minute,:integer
    add_column :standard_maintenances,:dynamic_during_minute,:integer
  end

  def self.down
    remove_column :standard_maintenances,:flag
    remove_column :standard_maintenances,:dynamic_begin_minute
    remove_column :standart_maintenances,:dynamic_during_minute
  end
end
